/**
 * File AgentTableNode.java created by Pablo Díaz Fernández
 * on 22/04/2012 for the project supply-chain-simulator
 */
package org.lsk.pfc.scsim.model.util;

import jade.core.AID;

/**
 * Mantains information of the nodes stored in the AgentTableHelper.
 * 
 * @author Pablo Díaz Fernández
 * 
 */
public final class AgentTableNode {
	/**
	 * Name of the node.
	 */
	private String name;
	/**
	 * AID of the node.
	 */
	private AID aid;
	/**
	 * Flag that indicates the end of tick.
	 */
	private boolean eot;
	/**
	 * Flag that indicates the end of execution.
	 */
	private boolean eoe;

	/**
	 * Constructor of the class.
	 * 
	 * @param name
	 *            Name to set.
	 * @param aid
	 *            agent id to set
	 */
	public AgentTableNode(final String name, final AID aid) {
		this.name = name;
		this.aid = aid;
		this.eoe = false;
		this.eot = true;
	}

	/**
	 * @return the eot
	 */
	public boolean isEot() {
		return eot;
	}

	/**
	 * @param eot
	 *            the eot to set
	 */
	public void setEot(final boolean eot) {
		this.eot = eot;
	}

	/**
	 * @return the eoe
	 */
	public boolean isEoe() {
		return eoe;
	}

	/**
	 * @param eoe
	 *            the eoe to set
	 */
	public void setEoe(final boolean eoe) {
		this.eoe = eoe;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * Gets the aid.
	 * 
	 * @return the aid
	 */
	public AID getAid() {
		return aid;
	}

	/**
	 * Sets the aid.
	 * 
	 * @param aid
	 *            the aid to set
	 */
	public void setAid(final AID aid) {
		this.aid = aid;
	}
}
